package MTRequest;

import MTProxyServer.MTConstant;
import MTProxyServer.MessageCentre;

public class MTRequestFactory {
	public static MTRequest CreateRequest( int aRequestID, MessageCentre aMsgCenter )
	{
		MTRequest request = null;
		switch( aRequestID ){
			case MTConstant.MT_REQID_REIGSTER:{
				request = new MTServerRegisterRequest( aMsgCenter );
				break;
			}
			case MTConstant.MT_REQID_SYNCHRONIZE_CONTACT_LIST:{
				request = new MTServerSynContactList( aMsgCenter );
				break;
			}
			case MTConstant.MT_REQID_CREATE_EVENT:{
				request = new MTServerCreateEvent( aMsgCenter );
				break;
			}
			case MTConstant.MT_REQID_SYNCHRONIZE_DATA_FROM_LOCAL_DB:{
				request = new MTServerSynDataFromLocalDB( aMsgCenter );
				break;
			}
			case MTConstant.MT_REQID_SYNCHRONIZE_DATA_FROM_SERVER:{
				request = new MTServerSynDataFromServerDB( aMsgCenter );
				break;
			}
			case MTConstant.MT_REQID_STOCK_TAKE_EVENT:{
				request = new MTServerStockTakeEvent( aMsgCenter );
				break;
			}
			
		}
		return request;
	}

}
